<?php

	class ListWidget extends EbWidget
	{
		public function render()
		{
			$dataProvider = $this->dataProvider;
			$itemRenderer = $this->itemRenderer;

			if (!is_null($itemRenderer))
			{
				$itemRenderer = addslashes($itemRenderer);
							
				foreach($dataProvider AS $item)
				{
					echo parent::evalItemRenderer($item,$itemRenderer);
				}
			}
			else
			{
				$itemRendererComponent = $this->itemRendererComponent;
				
				foreach($dataProvider AS $item)
				{
					if (is_array($item))
					{
						extract($item,EXTR_OVERWRITE);
					}
					else if (is_object($item))
					{
						extract(get_object_vars($item),EXTR_OVERWRITE);
					}
			
					include(eb_module_file($itemRendererComponent.'Component'));
				}
			}
		}	
	}

?>